{% for election in election_list %}

<h1>
	<p>Election: {{election.electionDescription}}</p>
	<p>{{election.electionDate}}</p>
</h1>
<h2>Issues</h2>
{% for issue in issue_list %}
	{% ifequal election issue.election %}
	<table border="1">
  		<caption>{{ issue.issueName }}</caption>
  		<tr>
    		<th>Choice</th>
    		<th>Votes</th>
  		</tr>
  		{% for choice in issue.choice_set.all %}
  		<tr>
    		<td>{{ choice.choiceDescription }}</td>
    		<td>{{ choice.votes }}</td>
  		</tr>
  		{% endfor %}
	</table>
	{% endifequal %}
{% endfor %}
<h2>Positions</h2>
{% for position in position_list %}
	{% ifequal election position.election %}
	<table border="1">
  		<caption>{{ position.posName }}</caption>
  		<tr>
    		<th>Candidate</th>
    		<th>Votes</th>
  		</tr>
  		{% for candidate in position.candidate_set.all %}
  			<tr>
    			<td>{{ candidate.facultyMember }}</td>
    			<td>{{ candidate.votes }}</td>
  			</tr>
  		{% endfor %}
	</table>
	{% endifequal %}
{% endfor %}

{%endfor %}